using System;

namespace TagTool.Devices.Midi
{
    /// <summary> Represents a channel voice message </summary>
    public class NoteOffMessage : MidiChannelMessage
    {
        public NoteOffMessage(uint highData, uint lowData)
            : base(highData, lowData)
        {
        }

        /// <summary> Property Note </summary>
        /// <remarks> Note (or pitch) is in the 7 bits of the 2nd byte in highData </remarks>
        public uint Note
        {
            get
            {
                return ((HighData >> 8) & (uint)MidiMessageMask.Data);
            }
        }
    }
}
